/*
 * @author: lican02
 * @description:数组反转排序
 */
let array = [10, 20, 30, 40, 50, 60, 70];
function reverse(arr) {
  let circle = arr.length / 2;
  for (let index = 0; index < circle; index++) {
    let temp = arr[index];
    arr[index] = arr[arr.length - 1 - index];
    arr[arr.length - 1 - index] = temp;
  }
  return arr;
}

console.log(reverse(array));
